package cn.felord.debezium.controller;

import cn.felord.debezium.dao.DetectionRlMapper;
import cn.felord.debezium.entity.DetectionRl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    DetectionRlMapper detectionRlMapper;

    @RequestMapping("/hh")
    public String hh(){
        List<DetectionRl> detectionRls = detectionRlMapper.selectDetectionRlList(null);
        return detectionRls.toString();
    }

}
